package cwiczenia.cwiczenia10.dwuwymiaroowe_bez_petli;

import java.util.Random;

public class Main {
    public static void main(String[] args) {
        int[][] tab = new int[2][2];               // czyli 4elementy, tablica dwuwymiarowa

        Random random = new Random();

        tab[0][0] = random.nextInt(2);            // losuje piekne liczby od 0 do 1
        tab[0][1] = random.nextInt(2);
        tab[1][0] = random.nextInt(2);
        tab[1][1] = random.nextInt(2);

        System.out.println("tab[0][0] = " + tab[0][0]);
        System.out.println("tab[0][1] = " + tab[0][1]);
        System.out.println("tab[1][0] = " + tab[1][0]);
        System.out.println("tab[1][1] = " + tab[1][1]);

        System.out.println();

        System.out.println(tab[0][0] + " " + tab[0][1]);
        System.out.println(tab[1][0] + " " + tab[1][1]);
    }
}
